package com.athuahua.spzx.service;

import com.athuahua.spzx.entity.SysRole;
import com.athuahua.spzx.dto.system.SysRoleDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @author huahua
* @description 针对表【sys_role(角色)】的数据库操作Service
* @createDate 2024-07-22 23:01:08
*/
public interface SysRoleService extends IService<SysRole> {
    /**
     * 分页查询角色
     * @param page
     * @param size
     * @param sysRoleDto
     * @return
     */
    public IPage<SysRole> findByPage(int page, int size, SysRoleDto sysRoleDto);

    /**
     * 查询所有角色
     * @param userId
     * @return
     */
    Map<String, Object> findAllRoles(Long userId);
}
